Skip to content

Conversation

@wking
Copy link
Member

@wking wking commented Dec 15, 2020

I'd attempted to consume this as an environment variable in 00ebab1 (#1527), but it's failing in CI with:

2020/12/15 18:04:36 Running pod e2e-aws-upgrade
Installing from initial release registry.svc.ci.openshift.org/ocp/release:4.5.23
/bin/bash: line 59: LEASED_RESOURCE: unbound variable

With this commit, I'm making it a template parameter, so it will be filled in by Go template expansion (and never be an environment variable within the test pod).

I'd attempted to consume this as an environment variable in 00ebab1
(pkg/steps/clusterinstall/template: Get region from Boskos lease,
2020-12-11, openshift#1527), but it's failing in CI with [1]:

  2020/12/15 18:04:36 Running pod e2e-aws-upgrade
  Installing from initial release registry.svc.ci.openshift.org/ocp/release:4.5.23
  /bin/bash: line 59: LEASED_RESOURCE: unbound variable

With this commit, I'm making it a template parameter, so it will be
filled in by Go template expansion (and never be an environment
variable within the test pod).

[1]: https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/release-openshift-origin-installer-e2e-aws-upgrade-rollback-4.5-to-4.6/1338903713728696320#1:build-log.txt%3A29
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 15, 2020
@wking
Copy link
Member Author

wking commented Dec 15, 2020

Precedent I'm following for another parameter:

$ git --no-pager grep CLUSTER_NETWORK_TYPE pkg/steps/clusterinstall/template.go
pkg/steps/clusterinstall/template.go:- name: CLUSTER_NETWORK_TYPE
pkg/steps/clusterinstall/template.go:        network_type="${CLUSTER_NETWORK_TYPE-}"

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 15, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AlexNPavel, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants